package com.hzhk.happyrent.bean.bill;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Administrator on 2018/1/24 0024.
 */

public class ProductBillBean {

    /**
     * errCode : 0
     * message : success
     * data : {"orders":[{"id":"10","periods":"1","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1519392288","created_at":"1516713888","status":"1","order_sn":"R201801232124489405499","user_id":"10369","money":"0.01","paid_time":"1516713888","paid_trade_no":"2018012321001004890568362541"},{"id":"11","periods":"2","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1521811488","created_at":"1516713888","status":"0","order_sn":"R201801232124489427417","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"12","periods":"3","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1524489888","created_at":"1516713888","status":"0","order_sn":"R201801232124489449513","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"13","periods":"4","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1527081888","created_at":"1516713888","status":"0","order_sn":"R201801232124489487839","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"14","periods":"5","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1529760288","created_at":"1516713888","status":"0","order_sn":"R201801232124489509571","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"15","periods":"6","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1532352288","created_at":"1516713888","status":"0","order_sn":"R201801232124489535924","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"16","periods":"7","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1535030688","created_at":"1516713888","status":"0","order_sn":"R201801232124489555475","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"17","periods":"8","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1537709088","created_at":"1516713888","status":"0","order_sn":"R201801232124489576327","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"18","periods":"9","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1540301088","created_at":"1516713888","status":"0","order_sn":"R201801232124489598817","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"19","periods":"10","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1542979488","created_at":"1516713888","status":"0","order_sn":"R201801232124489624902","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"20","periods":"11","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1545571488","created_at":"1516713888","status":"0","order_sn":"R201801232124489647552","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null},{"id":"21","periods":"12","order_id":"492","main_order_sn":"2018012321234665168630","end_time":"1548249888","created_at":"1516713888","status":"0","order_sn":"R201801232124489677564","user_id":"10369","money":"379.00","paid_time":null,"paid_trade_no":null}]}
     * time : 1516777566
     */

    @SerializedName("errCode")
    private int errCode;
    @SerializedName("message")
    private String message;
    @SerializedName("data")
    private DataBean data;
    @SerializedName("time")
    private int time;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public static class DataBean {
        @SerializedName("orders")
        private List<OrdersBean> orders;

        public List<OrdersBean> getOrders() {
            return orders;
        }

        public void setOrders(List<OrdersBean> orders) {
            this.orders = orders;
        }

        public static class OrdersBean {
            /**
             * id : 10
             * periods : 1
             * order_id : 492
             * main_order_sn : 2018012321234665168630
             * end_time : 1519392288
             * created_at : 1516713888
             * status : 1
             * order_sn : R201801232124489405499
             * user_id : 10369
             * money : 0.01
             * expire_pay_money :
             * paid_time : 1516713888
             * paid_trade_no : 2018012321001004890568362541
             */

            @SerializedName("id")
            private String id;
            @SerializedName("periods")
            private String periods;
            @SerializedName("order_id")
            private String orderId;
            @SerializedName("main_order_sn")
            private String mainOrderSn;
            @SerializedName("end_time")
            private String endTime;
            @SerializedName("created_at")
            private String createdAt;
            @SerializedName("status")
            private String status;
            @SerializedName("order_sn")
            private String orderSn;
            @SerializedName("user_id")
            private String userId;
            @SerializedName("money")
            private String money;
            @SerializedName("paid_time")
            private String paidTime;
            @SerializedName("paid_trade_no")
            private String paidTradeNo;
            @SerializedName("expire_pay_money")
            private String expirePayMoney;
            private boolean check=false;

            public String getExpirePayMoney() {
                return expirePayMoney;
            }

            public void setExpirePayMoney(String expirePayMoney) {
                this.expirePayMoney = expirePayMoney;
            }

            public boolean isCheck() {
                return check;
            }

            public void setCheck(boolean check) {
                this.check = check;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getPeriods() {
                return periods;
            }

            public void setPeriods(String periods) {
                this.periods = periods;
            }

            public String getOrderId() {
                return orderId;
            }

            public void setOrderId(String orderId) {
                this.orderId = orderId;
            }

            public String getMainOrderSn() {
                return mainOrderSn;
            }

            public void setMainOrderSn(String mainOrderSn) {
                this.mainOrderSn = mainOrderSn;
            }

            public String getEndTime() {
                return endTime;
            }

            public void setEndTime(String endTime) {
                this.endTime = endTime;
            }

            public String getCreatedAt() {
                return createdAt;
            }

            public void setCreatedAt(String createdAt) {
                this.createdAt = createdAt;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getOrderSn() {
                return orderSn;
            }

            public void setOrderSn(String orderSn) {
                this.orderSn = orderSn;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getMoney() {
                return money;
            }

            public void setMoney(String money) {
                this.money = money;
            }

            public String getPaidTime() {
                return paidTime;
            }

            public void setPaidTime(String paidTime) {
                this.paidTime = paidTime;
            }

            public String getPaidTradeNo() {
                return paidTradeNo;
            }

            public void setPaidTradeNo(String paidTradeNo) {
                this.paidTradeNo = paidTradeNo;
            }
        }
    }
}
